package com.boot.core.result

import java.util.*

/**
 * activemp消息bean
 *
 * @Auther: kawins
 * @Date: 2018/10/20 14:42
 */
class MsgBean {

    var msgId: Int? = null

    var msgType: Int = 1

    var msgTime: Long = Date().time

    var policeNumber: String? = null

    var accidentReportId: Int? = null

    var content: MutableMap<String, Any>? = null

    constructor()

    constructor(policeNumber: String, content: MutableMap<String, Any>) {
        this.policeNumber = policeNumber
        this.content = content
    }

    fun put(key: String, value: Any): MsgBean {
        if (content == null) {
            content = mutableMapOf()
        }
        content!![key] = value
        return this
    }
}